package dt.day03.demo;

/**
 * 个人实体类
 */
public class Person {

    /**
     * 个人编号
     */
    private String pno;


    /**
     * 消耗金额
     */
    private Integer amount;


    public Person() {
    }

    public Person(String pno, Integer amount) {
        this.pno = pno;
        this.amount = amount;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Person{" +
                "pno='" + pno + '\'' +
                ", amount=" + amount +
                '}';
    }
}
